package com.ruoyi.student.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.student.mapper.StudentTeacherInfoMapper;
import com.ruoyi.student.domain.StudentTeacherInfo;
import com.ruoyi.student.service.IStudentTeacherInfoService;

/**
 * 教师信息Service业务层处理
 * 
 * @author ruoyi
 * @date 2024-12-23
 */
@Service
public class StudentTeacherInfoServiceImpl implements IStudentTeacherInfoService 
{
    @Autowired
    private StudentTeacherInfoMapper studentTeacherInfoMapper;

    /**
     * 查询教师信息
     * 
     * @param id 教师信息主键
     * @return 教师信息
     */
    @Override
    public StudentTeacherInfo selectStudentTeacherInfoById(String id)
    {
        return studentTeacherInfoMapper.selectStudentTeacherInfoById(id);
    }

    /**
     * 查询教师信息列表
     * 
     * @param studentTeacherInfo 教师信息
     * @return 教师信息
     */
    @Override
    public List<StudentTeacherInfo> selectStudentTeacherInfoList(StudentTeacherInfo studentTeacherInfo)
    {
        return studentTeacherInfoMapper.selectStudentTeacherInfoList(studentTeacherInfo);
    }

    /**
     * 新增教师信息
     * 
     * @param studentTeacherInfo 教师信息
     * @return 结果
     */
    @Override
    public int insertStudentTeacherInfo(StudentTeacherInfo studentTeacherInfo)
    {
        return studentTeacherInfoMapper.insertStudentTeacherInfo(studentTeacherInfo);
    }

    /**
     * 修改教师信息
     * 
     * @param studentTeacherInfo 教师信息
     * @return 结果
     */
    @Override
    public int updateStudentTeacherInfo(StudentTeacherInfo studentTeacherInfo)
    {
        return studentTeacherInfoMapper.updateStudentTeacherInfo(studentTeacherInfo);
    }

    /**
     * 批量删除教师信息
     * 
     * @param ids 需要删除的教师信息主键
     * @return 结果
     */
    @Override
    public int deleteStudentTeacherInfoByIds(String[] ids)
    {
        return studentTeacherInfoMapper.deleteStudentTeacherInfoByIds(ids);
    }

    /**
     * 删除教师信息信息
     * 
     * @param id 教师信息主键
     * @return 结果
     */
    @Override
    public int deleteStudentTeacherInfoById(String id)
    {
        return studentTeacherInfoMapper.deleteStudentTeacherInfoById(id);
    }
}
